@include('Admin.public.head')
<body>
@include('Admin.public.menu')
<div class=" admin-content"  id="app">
<div class="admin-biaogelist">
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 修改错误单号</ul>
      {{--<dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">商品列表</a></dl>--}}
    </div>
    <div class="fbneirong" >
      <form class="am-form">
        {{ csrf_field() }}
        <div class="am-form-group am-cf">
          <div class="zuo">订单编号：</div>
          <div class="you">
            <input type="text" style="max-width: 300px" class="am-form-field" v-model="users.order" placeholder="请输入订单编号" required>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">会员电话：</div>
          <div class="you">
            <input type="number" style="max-width: 300px" class="am-form-field" maxlength="11"  v-model="users.phone" placeholder="请输入电话">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="you" style="margin-left: 11%;">
            <button type="button" class="am-btn am-btn-success am-radius" v-on:click="edit()">修 改</button>&nbsp;&nbsp;
            <button type="button" class="am-btn am-btn-secondary am-radius" onclick="javascript:history.back(-1);">返 回</button>
          </div>
        </div>
      </form>
    </div>
  <script>
      var app = new Vue({
          el:"#app",
          data: {
              users:{
                  order:'',
                  phone:'',
              },
          },
          //事件
          methods: {
              //编辑
              edit:function () {
                  $.post("/admin/members/alters",{'_token':'{{csrf_token()}}',user:app.users},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
          },
          //自动执行
          mounted: function () {
              this.initialize();
          },
      })
  </script>
@include('Admin.public.foot')